package cn.zhentao.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private Integer sid;
    private String sname;
    private Integer age;
    private String sex;
    private String sphone;
    private Integer tid;

    //解决一对一关系，声明关联表的对象
    private Teacher teacher;
}
